<?php

class forumMembersTable extends Doctrine_Table
{
	public function getForumMember($id_member){
		$q =Doctrine_Query::create()
		  ->from ('forumMembers as m')
		  ->where ('m.isActive=?',1)
          ->innerJoin('m.sfGuardUser')
          ->andWhere ('m.userId=?',$id_member)
		  ->orderby('m.id DESC');
		
		return $q->execute();
	}
}